//
//  JddAdOperation.m
//  PlayBall
//
//  Created by admin on 14-7-23.
//
//

#import "JddAdOperation.h"
#import "JddParameterBuilder.h"
@implementation JddAdOperation
- (void)main{
    @autoreleasepool {
        JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
        NSString *bodyString = [JddParameterBuilder adParameter:self.platformTyp];
        NSData *dataAd = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
//        NSString *str = [NSJSONSerialization JSONObjectWithData:dataAd options:NSJSONReadingMutableContainers error:nil];
//        NSLog(@"==================%@",str);
         [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(AdOperationResult:) withObject:dataAd waitUntilDone:NO];
    }
}

@end
